package com.jsecode.protocol.gid22;

/**
 * 消息ID定义
 *
 * @author grind
 * @date Mar 28, 2014 5:02:32 PM
 * @version 1.0
 */
public class GidMsgID {

    /** 主动上报 */
    public final static int GPS_REPORT_FLAG = 0x00; // 车辆定时上报GPS定位数据
    public final static int CAN_FLAG = 0x01; // 终端定时上报车辆静态数据
    public final static int DTC_FLAG = 0x02; // 故障主动上报
    public final static int DV_FLAG = 0x03; // 终端版本信息
    public final static int ALERT_FLAG = 0x04;
    public final static int HEARTBEAT_FLAG = 0x05;
    public final static int DRIVER_ACTION_FLAG = 0x06;
    public final static int SIM_INFO_FLAG = 0x07;
    public final static int GPS_DATA_AND_LBS = 0x08;
    public final static int GPS_REPORT_LBS = 0x09;
    public final static int VEHICLE_INFO = 0x0A; // 车辆信息
    public final static int VEHICLE_SHARP_SLOWDOWN = 0x0B; // 车辆上报急减速事件数据 0x80
    public final static int VEHICLE_SHARP_ACCELERATE = 0x0C; //    车辆上报急加速事件数据 0x80
    public final static int VEHICLE_SHARP_TURE = 0x0D; //    车辆上报急转弯数据   0x80
    public final static int VEHICLE_OVERSPEED = 0x0E; //    车辆上报超速数据    0x80
    public final static int VEHICLE_SHARP_STOP = 0x0F; //   车辆上报急刹车事件数据 0x80
    // 新加新的主动上报 （2014.3.10）
    public final static int TM_PARAM_UP_REQ = 0x93; // 终端向平台请求配置参数列表
    public final static int TM_UTC_TIME_REQ = 0x94; // 车机获取零时区时间
    // (2015.7.20 新加)
    public final static int HOME_STATIC_DATA_UP = 0x98;     //  终端上报车机静态数据  0x80    平台确认应答
    public final static int HOME_GPS_UP = 0x99;     //    终端上报GPS数据   0x80    平台确认应答
    public final static int HOME_CAN_UP = 0x9A; //    终端上报OBD数据   0x80    平台确认应答

    public final static int GPS_UP_BATCH = 0xA0; // 终端上报大GPS数据包
    public final static int CAN_UP_BATCH = 0xA1; // 终端上报大CAN数据包
    public final static int LBS_WARN_UP = 0xA2; // LBS终端上报报警数据包
    // 新加的事件场景数据 (2015.3.6)
    public final static int VEHICLE_EVENT_SHARP_SLOWDOWN = 0xA8;   // 车辆上报急减速事件场景(A8)  
    public final static int VEHICLE_EVENT_SHARP_ACCELERATE = 0xA9; // 车辆上报急加速事件场景(A9)  
    public final static int VEHICLE_EVENT_SHARP_TURE = 0xAA;       // 车辆上报急转弯事件场景(AA)  
    public final static int VEHICLE_EVENT_COLLIDE = 0xAB;          // 车辆上报碰撞事件场景(AB) 
    public final static int VEHICLE_EVENT_SHARP_STOP = 0xAC;       // 车辆上报急刹车事件场景(AC)

    // 主动上报回复的id
    public final static int PF_UN_RSP = 0x80; // 平台确认应答
    public final static int PF_WARN_RSP = 0xA4; // 平台确认报警应答
    public final static int TM_PARAM_UP_RSP = 0x83; // 终端向平台请求配置参数列表返回
    public final static int TM_UTC_TIME_RSP = 0x84; // 车机获取零时区时间返回
    
    /** 查询车辆当前位置(点名) */
    public final static int QUERY_GPS_FLAG = 0x30;
    public final static int QUERY_GPS_FLAG_REPLY = 0x20;
    
    /*查询GPS定时回传参数*/
    public final static int QUERY_START_FLAG = 0x31;
    public final static int QUERY_START_FLAG_REPLY = 0x11;
    
    /*设置GPS定时回传参数*/
    public final static int SET_GPS_UPLOAD = 0x50;
    
    
    /*查询CAN数据定时回传参数*/
    public final static int QUERY_TIMER_SETING_QUERY = 0x32;
    public final static int QUERY_TIMER_SETING_REPLY = 0x12;
    
    /*查询GPRS通讯参数*/
    public final static int QUERY_CMD = 0x33;
    public final static int QUERY_CMD_REPLY = 0x13;
    
    /*查询SMS短信中心号码*/
    public final static int QUERY_SMS_NUM = 0x34;
    public final static int QUERY_SMS_NUM_REPLY = 0x14;
    
    /*查询APN*/
    public final static int QUERY_APN = 0x35;
    public final static int QUERY_APN_REPLY = 0x15;
    
    /*查询心跳数据包间隔*/
    public final static int QUERY_HEARTBEAT_INTERVAL_ = 0x36;
    public final static int QUERY_HEARTBEAT_INTERVAL_REPLY = 0x16;
    
    /*查询报警方式*/
    public final static int QUERY_ALARM_MODE= 0x37;
    public final static int QUERY_ALARM_MODE_REPLY = 0x17;
    
    /*查询低电压报警参数*/
    public final static int QUERY_LOW_POWER_ALARM_PARAM = 0x38;
    public final static int QUERY_LOW_POWER_ALARM_PARAM_REPLY = 0x18;
    
    /*查询拖车报警参数*/
    public final static int QUERY_TRAILER_ALARM_PARAM = 0x39;
    public final static int QUERY_TRAILER_ALARM_PARAM_REPLY = 0x19;

    /*查询碰撞报警参数*/
    public final static int QUERY_CRASH_ALARM_PARAM= 0x3A;
    public final static int QUERY_CRASH_ALARM_PARAM_REPLY = 0x1A;
    
    /*查询翻车报警参数*/
    public final static int QUERY_ROLL_ALARM_PARAM= 0x3B;
    public final static int QUERY_ROLL_ALARM_PARAM_REPLY = 0x1B;
    
    /*查询定位时间过长报警参数*/
    public final static int QUERY_LOCATE_TIMEOUT_ALARM_PARAM = 0x3C;
    public final static int QUERY_LOCATE_TIMEOUT_ALARM_PARAM_REPLY = 0x1C;
    
    /** 查询车辆超速处理参数 */
    public final static int QUERY_VEHICLE_OVER_SPEED_PARAM = 0x3E;
    public final static int QUERY_VEHICLE_OVER_SPEED_PARAM_RSP = 0x1E;
    
    /*查询_静态CAN数据*/
    public final static int QUERY_CURRENT_STATIC_DATA= 0x41;
    public final static int QUERY_CURRENT_STATIC_DATA_REPLY = 0x21;
    
    /*查询当前故障码*/
    public final static int QUERY_FAULT_CODE = 0x42;
    public final static int QUERY_FAULT_CODE_REPLY = 0x22;
    
    /*查询终端信息*/
    public final static int QUERY_TERMINAL_INFO = 0x43;
    public final static int QUERY_TERMINAL_INFO_REPLY = 0x23;
    
    /*查询当前车辆动态数据   上位机读取指定终端车辆动态数据流*/
    public final static int QUERY_CURRENT_DYNAMIC_DATA = 0x44;
    public final static int QUERY_CURRENT_DYNAMIC_DATA_REPLY = 0x21;
    
    /*查询车辆类型*/
    public final static int QUERY_VEHICLE_TYPE = 0x45;
    public final static int QUERY_VEHICLE_TYPE_REPLY = 0x25;
    
    /*查询当前总里程总油耗*/
    public final static int QUERY_Total_Fuel_CONSUMPTION = 0x46;
    public final static int QUERY_Total_FUEL_CONSUMPTION_REPLY = 0x26;
    /*查询_怠速时间过长报警参数*/
    public final static int QUERY_IDLE_TIMEOUT_ALARM_PARAM= 0x47;
    public final static int QUERY_IDLE_TIMEOUT_ALARM_PARAM_REPLY = 0x27;
    /*查询_动态数据流最大持续时间*/
    public final static int QUERY_DYNAMIC_STREAM_MAX_CONTINUED_TIME= 0x48;
    public final static int QUERY_DYNAMIC_STREAM_MAX_CONTINUED_TIME_REPLY = 0x28;
    /*查询_驾驶行为数据*/
    public final static int QUERY_DRIVING_BEHAVIOR = 0x49;
    public final static int QUERY_DRIVING_BEHAVIOR_REPLY = 0x29;
    /*查询_急加速参数*/
    public final static int QUERY_URGENT_SPEEDUP_PARAM = 0x4A;
    public final static int QUERY_URGENT_SPEEDUP_PARAM_REPLY = 0x2A;
    /*查询_急减速参数*/
    public final static int QUERY_URGENT_SLOWDWON_PARAM = 0x4B;
    public final static int QUERY_URGENT_SLOWDWON_PARAM_REPLY = 0x2B;
    
    /*查询_急转弯参数*/
    public final static int QUERY_URGENT_TURN_PARAM = 0x4C;
    public final static int QUERY_URGENT_TURN_PARAM_REPLY = 0x2C;
    /*查询_SIM卡信息*/
    public final static int QUERY_SIM_INFO = 0x4D;
    public final static int QUERY_SIM_INFO_REPLY = 0x2D;
    /*查询_车机身份信息*/
    public final static int QUERY_VEHICLE_OWNER_INFO = 0x4E;
    public final static int QUERY_VEHICLE_OWNER_INFO_REPLY = 0x2E;
    
    ////////////////
    // 设置功能
    /** 清除当前故障码*/
    public final static int SET_CLEAR_BUG = 0x54; // 回复id为0x24
    public final static int SET_CMD = 0x57;
    public final static int SET_SMS = 0x58;
    public final static int SET_APN = 0x59;
    public final static int SET_HEARTBEAT_INTERVAL= 0x5A; // 设置心跳间隔
    public final static int SET_VEHICLE_TYPE = 0x5B; // 设置车辆类型
    public final static int SET_OVER_SPEED = 0x68; // 设置车辆超速参数
    
    /** 终端确认应答 */
    public final static int TM_UN_RSP = 0x7F; 
    public final static int SET_CLEAR_BUG_REPLY = 0x24;
    
    /** 后续设置指令 */
    public final static int SET_UPGRADE_SOFT_REQ = 0x91; // 平台要求升级  0x81    终端升级要求应答
    public final static int SET_UPGRADE_SOFG_RSP = 0x81;
    public final static int SET_SIM_NUM = 0x92;   // 平台要求车机向指定号码发送车机信息 0x7F 终端确认应答
    
    // others
    public final static int AT_END_FLAG = 0x7E;
    public final static int AT_SET_FLAG = 0x7F;
    // public final static int AT_UPDATE_FLAG = 0x81;

    /** 国网网关地址 2015.5.12增加 */
    public final static int SET_STATEG_GW = 0xB0;         // 设置国网网关地址 (0xB0)
    public final static int QUERY_STATEG_GW = 0xB1;         // 查询国网网关地址 (0xB1)
    public final static int QUERY_STATEG_GW_REPLY = 0xB2;         // 查询国网网关地址回复 (0xB2)
    
    /** 国网注册参数 2015.5.12增加 */
    public final static int SET_STATEG_REG_PARAM = 0xB3;         // 设置国网注册参数(0xB3)_
    public final static int QUERY_STATEG_REG_PARAM = 0xB4;       // 查询国网注册参数(0xB4)
    public final static int QUERY_STATEG_REG_PARAM_REPLY = 0xB5; // 查询国网注册参数回复
    
    
    public final static int STATIC_FLAG = 0xF1;
    


    public final static int QUERY_FLAG = 0XFA;
    public final static int SEARCH_FLAG = 0XFC;
    public final static int SEARCHALL_FLAG = 0XFD;


}
